package com.sunhao.blog.controller;

import com.sunhao.blog.model.dto.UserAuthDto;
import com.sunhao.blog.model.vo.ResultVO;
import com.sunhao.blog.service.UserAuthService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@ApiOperation(value = "用户账号", tags = "用户账号模块")
@RestController
public class UserAuthController {

    @Autowired
    private UserAuthService userAuthService;

    @PostMapping("login")
    public ResultVO login(@RequestBody UserAuthDto userAuthDto){
        return userAuthService.login(userAuthDto);
    }

//    @PostMapping("register")
//    public ResultVO register(@RequestBody UserAuthDto userAuthDto){
//        return userAuthService.register(userAuthDto);
//    }



}
